package com.share.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.order.api.domain.SubmitOrderVo;
import com.share.order.domain.OrderInfo;
import com.share.rules.api.domain.EndOrderVo;

import java.util.List;

public interface OrderInfoService extends IService<OrderInfo> {
    OrderInfo getNoFinishedOrder(Long userId);

    OrderInfo selectOrderInfoById(Long id);

    Long saveOrder(SubmitOrderVo orderForm);

    void endOrder(EndOrderVo endOrderVo);

    List<OrderInfo> userOrderInfo(Long userId, Integer pageNum, Integer pageSize);

    OrderInfo getByOrderNo(String orderNo);
}
